package com.ruoyi.project.communication.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.TreeEntity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 用户交流对象 user_communication
 * 
 * @author Daniel
 * @date 2020-04-03
 */
public class UserCommunication extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long ucId;

    /** 头像路径 */
    @Excel(name = "头像路径")
    private String userAvatar;

    /** 本名字 */
    @Excel(name = "本名字")
    private String userName;

    /** 原名字 */
    @Excel(name = "原名字")
    private String toName;

    /** 发表日期 */
    @Excel(name = "发表日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 发表内容 */
    @Excel(name = "发表内容")
    private String content;

    /** 赞人数 */
    @Excel(name = "赞人数")
    private Long likeNum;

    /** 父级id */
    @Excel(name = "父级id")
    private Long ucPId;

    private Long userId;

    private Long toId;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getToId() {
        return toId;
    }

    public void setToId(Long toId) {
        this.toId = toId;
    }

    private List<UserCommunication> reply=new ArrayList<>();

    public List<UserCommunication> getReply() {
        return reply;
    }

    public void setReply(List<UserCommunication> reply) {
        this.reply = reply;
    }

    /** 回复数 */
    @Excel(name = "回复数")
    private Long replyNum;

    public void setUcId(Long ucId) 
    {
        this.ucId = ucId;
    }

    public Long getUcId() 
    {
        return ucId;
    }
    public void setUserAvatar(String userAvatar) 
    {
        this.userAvatar = userAvatar;
    }

    public String getUserAvatar() 
    {
        return userAvatar;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setToName(String toName) 
    {
        this.toName = toName;
    }

    public String getToName() 
    {
        return toName;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setLikeNum(Long likeNum) 
    {
        this.likeNum = likeNum;
    }

    public Long getLikeNum() 
    {
        return likeNum;
    }
    public void setUcPId(Long ucPId) 
    {
        this.ucPId = ucPId;
    }

    public Long getUcPId() 
    {
        return ucPId;
    }
    public void setReplyNum(Long replyNum) 
    {
        this.replyNum = replyNum;
    }

    public Long getReplyNum() 
    {
        return replyNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ucId", getUcId())
            .append("userAvatar", getUserAvatar())
            .append("userName", getUserName())
            .append("toName", getToName())
            .append("date", getDate())
            .append("content", getContent())
            .append("likeNum", getLikeNum())
            .append("ucPId", getUcPId())
            .append("replyNum", getReplyNum())
            .toString();
    }
}
